package com.ncucoder.iterator;

/**
 * 学生类
 *
 * @author <a href="https://edit.ncucoder.com">hsowan</a>
 * @since 2018-12-20 10:12
 */
public class Student {
    private String name;
    private String code;
    private String phone;


    public Student() {
    }

    public Student(String name, String code, String phone) {
        this.name = name;
        this.code = code;
        this.phone = phone;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}
